®GLA¯
{{5Help4o2}} Help for O2.PM [XYOS2SHL.ZIP]
®SV01,®FL¯®LM2DI¯®RM78DI¯
O2.PM v1.0c - [Part of XYOS2SHL.ZIP]  R.J.Holmgren  6/3/96
Launch any OS/2|DOS|WIN3x process from the XyWrite command line

Usage:
   U2:  o2 [STARTOS2 parameters] [O2 options] command [args]<Helpkey>
  RUN:  run o2.pm ...same as above...<cr>
"command" is either a filename (preferably fully qualified!) or
  a (case-sensitive!) WPS objectID like "<WP_CXEDITOR>"
Issue special command "O2 /NV" to edit|see your list of O2 aliases
Aliases may contain replaceable "%1 %2 ... %n" parameters

Set in frame ÿ7Bÿ7B5o2ÿ7Dÿ7D:
  USER VARIABLE (OS/2 BootDriveLetter)
  DEFAULT PARAMETERS
    Defaults are overridden by Command Line Parameters and Options

STARTOS2 Parameters:
  (/DOS and /PM are useful ONLY from DOS command line, not from XyWrite)
  Execute HELP START for a description of most STARTOS2 options
  ÃÄÂÄÄÄÄÄÄÄÄÄÂÄÄÄÂÄÄÄÄÄÄÂÄÄÄÂÄÄÄÄÄÄÂÄÄÄÂÄÄÄÄÄÄÄÄÂÄÄÄÂÄÄÄÄÄÄÄÄÂ...
    ³"Program ³   ÃÄ /C Ä´   ÃÄ /F Ä´   ÀÄ[/DOS]ÄÙ   ÃÄ /FS  Ä´
    ÀÄ Title"ÄÙ   ÃÄ /K Ä´   ÀÄ /B ÄÙ                ÃÄ /WIN Ä´
                  ÀÄ /N ÄÙ                           ÀÄ[/PM ]ÄÙ

...ÄÂÄÄÄÄÄÄÄÄÂÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂ...
    ÃÄ /MAX Ä´   ÀÄ /Xpos,Ypos,Xsize,Ysize ÄÙ   ÀÄ /M:icon_file ÄÙ 
    ÀÄ /MIN ÄÙ     P“sition of Desktop window      ^               
                            Icon to display if procˆss is Minimized

O2 Options:
...ÄÄÂÄÂÄÂÄÂÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄ...
     ³ ³ ³ ³ ³ ÀÄ /E ÄÄÄÄÄÄ´  ECHO ON (default=ECHO OFF)
     ³ ³ ³ ³ ÀÄ /H ÄÄÄÄÄÄÄÄ´  Halt before exit (view results)
     ³ ³ ³ ÀÄ /I ÄÄÄÄÄÄÄÄÄÄ´  Ignore O2-ALIAS.DAT (omit alias query)
     ³ ³ ÀÄ /R ÄÄÄÄÄÄÄÄÄÄÄÄ´  execute concatenated commands as Rexx
     ³ ÀÄ /L:launch_title Ä´  title of process|object being Launched
     ÀÄ /P:exit_process ÄÄÄÙ  on termination, switch to Exit_Process

Command [arguments]:
...ÄÂÄÄÄ(defaults to COMSPEC, e.g. CMD.EXE)ÄÄÄÄÄÄÄÄÄÄÄÂÄÄ´
    ÀÄÄ command to launch ÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÙ
                             ÀÄ command arguments ÄÙ

Following switches accept spaces in "long parameters"
    (enclose spacey switches in "quotation marks", per below)
  "Process Title"                  (STARTOS2 parameter)
  /L:"launch title"                (O2 parameter)
  /P:"exit process"                (O2 parameter)
  "command to execute"
  "long command arguments"
  "runtime replaceable arguments"  (%1 %2...%n in O2-ALIAS.DAT aliases)

Aliases (Command Synonyms)
-------
Define shorthand STARTOS2_options+commands+arguments in
  file BootDrive:\OS2\MDOS\O2-ALIAS.DAT
Examples are present in the file already!
Aliases do NOT accept spaces

Install: O2.PM        in U2, or RUN O2.PM freestanding
-------  O2.CMD       in BootDrive:\OS2\MDOS
         O2-ALIAS.DAT in BootDrive:\OS2\MDOS
         PMSW.EXE     in BootDrive:\OS2\MDOS
         STARTOS2.EXE in BootDrive:\OS2\MDOS

®FC¯
For Use by RENUMBER.PM:
Renumber O2.PM in PACK mode
Default Save/Get Range=[00|50] 661-687
OPTIONs (2): FREEZE 50; LEFT$ %
®FL¯®LM¯¯
{{m}}

{{5o2}} O2.PM v1.0 - Start OS/2 [DOS|WIN3x] process from XyWrite
®SX00,®IS50¯¯®GLA¯;*;
;*;
;*;
;*;         USER VARIABLES - Toggle eXPanded view to set Save/Gets
;*;         ------------------------------------------------------
;*;         ÿü™ OS/2 BootDriveLetter, e.g. "C"
®LBA¯®SV661,¯;*;
;*;
;*;        DEFAULT PARAMETERS
;*;        ------------------
;*; Default STARTOS2 parameters; overriding one param with a
;*;   specific CMline instruction does NOT override the others.
;*; Parameters /DOS and /PM have no meaning in O2, and are
;*;   ignored (but /DOS and /PM apps *can* be executed).
;*; ALL parameters named below can be enabled from the CMline also
;*;
;*; Default "Process Title"
®SV662,"CMD Full_Screen"¯;*;
;*;
;*; Select /C, /K, or /N
®SV663,/C¯;*;
;*;
;*; Select /F or /B (Foreground|Background operation)
®SV664,/F¯;*;
;*;
;*; Select /FS or /WIN (FullScreen|WINdowed)
;*;  [N.B.: /DOS and /PM are meaningless]
®SV665,/FS¯;*;
;*;
;*; Select /MAX or /MIN (MAXimized|MINimized)
®SV666,/MAX¯;*;
;*;
;*;  /M:icon_file (display icon_file when process minimized)
®SV667,¯;*; ICO file
;*;
;*;  /E (turn ECHO ON during execution)
;*;  /H (Halt before exiting shell -- e.g. view results of command)
;*;  /I (Ignore O2-ALIAS.DAT, do not check whether input is an alias)
;*;  /R (execute "Command" as Rexx)
;*;  (separate params with spaces, e.g. ÿAESV668,/E /HÿAF; default=none)
®SV668,¯;*;
;*;
;*; Default exit_Process (after O2 shell routine)
;*;  [N.B.: SW.CMD aliases are legal]
®SV669,/P:XyWrite¯;*;
;*;
;*;
®IF®VA|661¯==1&"ABCDEFGHIJKLMNOPQRSTUVWXYZ"ð@UPR(®IS661¯)¯;*;
ÿ‚§ÿ‚«(es 1)®SX670,®IS00¯¯®SV671,  ¯®LBB¯®IF®IS670¯ð®IS671¯¯®SV672,¯®SV673,¯®XS670,671,672,,673¯®SX670,®IS672¯+" "+®IS673¯¯®GLB¯®EI¯;*; Replace all double spaces with one space
;*;
®SV671, ¯®SX673,®IS670¯¯®IF" "î®IS670¯==0¯®XS670,671,672,,673¯®EI¯;*; Remove leading space
;*;
®IF®VA|673¯>0¯®SX670,®IS673¯+" "¯®EI¯;*; Add trailing space
;*;
®SV674,"¯®SV675," ¯®IF"/I "î@UPR(®IS670¯)<0&"/R "î@UPR(®IS670¯)<0&"/I"î@UPR(®IS668¯)<0&"/R"î@UPR(®IS668¯)<0¯®SX676,1¯®IF@UPR(®IS670¯)<>"/NV "¯®SX676,0¯ÿA®EI¯®SX673,®IS661¯+":\OS2\MDOS\O2-ALIAS.DAT"¯®SX677,0¯®SX678,®VA$WN¯¯ÿ‚«gofile ®PV673¯ÿ‚®IF®ER¯¯®IF®VA$WA¯<1¯®PRNo Window¯®GLJ¯®EI¯®SX677,1¯ÿ‚«ca/100 ®PV673¯ÿ‚®EI¯®IF@NOT(®ER¯)¯ÿ‚«waitÿ‚ÿ­ÿ€ñ®IF®PV676¯>0¯ÿ‚«se/f  ÿ2Dÿ‚ÿ1®GLJ¯®EI¯;*;
;*;
®SX673,®IS670¯¯®IF" "î®IS670¯>0¯®XS670,671,673,,679¯®IF®VA|679¯>0¯®SX679,®IS679¯+" "¯®EI¯®EI¯®SX673,"
"+®IS673¯+"="¯ÿ‚«se ü®PV673¯üÿ‚®IF@NOT(®ER¯)¯ÿ=ÿÿ€kÿ‚«se/f  ÿÀ›ÿ‚ÿ€k®SV670¯ÿ®SX670,®IS670¯+" "¯®SX680,0¯®SV681,¯®SV682,¯®SU683,®SX680,®PV680¯+1¯®SX673,"%"+®IS680¯¯¯®GT683¯®IF®IS670¯ð®IS673¯¯®SV684,  ¯®LBC¯®IF®VA|679¯<2¯®SV679,¯®LBD¯®SV685,¯®SV686,¯®XS670,673,685,,686¯®SX681,®IS681¯+®IS685¯¯®SX670,®IS686¯¯®GT683¯®IF®IS670¯ð®IS673¯¯®GLD¯®EI¯®EI¯®IF"  "î®IS679¯>0¯®XS679,684,685,,686¯®SX679,®IS685¯+" "+®IS686¯¯®GLC¯®EI¯®IF" "î®IS679¯==0¯®XS679,671,,685,686¯®SX679,®IS686¯¯®EI¯®LBE¯®IF®IS679¯ð" "¯®IF®IS670¯ð®IS673¯¯®SV682,¯®SV684,¯®SV685,¯®SV686,¯®XS670,673,685,,686¯®IF®IS674¯î®IS679¯==0¯®SV687,¯®XS679,674,,684,687¯®SV684,¯®SV682,¯®XS687,675,684,,682¯®SX684,®IS674¯+®IS684¯+®IS674¯¯®EI¯®IF®IS674¯î®IS679¯<>0¯®XS679,671,684,,682¯®EI¯®SX681,®IS681¯+®IS685¯+®IS684¯¯®SX670,®IS686¯¯®SX679,®IS682¯¯®GT683¯®GLE¯®EI¯®EI¯®LBF¯®IF®IS670¯ð®IS673¯¯®SV686,¯®XS670,673,685,,686¯®SX670,®IS686¯¯®GT683¯®GLF¯®EI¯®SX670,®IS681¯+®IS686¯+" "+®IS682¯¯®EI¯®EI¯®IF®PV677¯>0¯®SX673,®VA$WN¯¯ÿ‚«(ab/nv)®IF®VA$WN¯==®PV673¯&®VA$WO¯>1¯ÿ‚«(rs)®EI¯®EI¯ÿ‚«(func #®PV678¯)®EI¯®IF®PV676¯>0¯®GLI¯®EI¯ÿ?ÿ;®EI¯;*;
;*;
®SV672,/DOS|/FS|/F|/K|/M:|/MAX|/MIN|/N|/PM|/WIN|/X|/B|/C|/E|/H|/I|/L:"|/L:|/O|/P:"|/P:|/R|¯®SV680,|¯®SX681,®IS662¯¯®SV682,¯;*; Setup strings
;*;
®SU683,®SV684,¯®IF®IS674¯î®IS670¯==0¯®XS670,674,,684,685¯®SV670,¯®XS685,675,684,,670¯®EI¯¯®SU686,®SX684,®IS672¯¯®SX685,@UPR(®IS676¯)¯®LBG¯®XS684,680,673,,679¯®IF®IS673¯î®IS685¯==0¯®EX¯®EI¯®IF®VA|679¯>0¯®SX684,®IS679¯¯®GLG¯®EI¯®SV673,¯¯;*; SUbroutines
;*;
®GT683¯®IF®VA|684¯>0¯®SX681,®IS674¯+®IS684¯+®IS674¯¯®EI¯;*; Get "Title"
;*;
®LBH¯®SV687,¯®XS670,671,676,,687¯®GT686¯;*; Get switch_type into ®SV673¯
;*;
®IF®VA|673¯>0¯®IF®IS673¯ð®IS674¯¯®SX676,®IS676¯+" "+®IS687¯¯®XS676,673,,684,685¯®XS685,675,676,,684¯®SX676,®IS673¯+®IS676¯+®IS674¯¯®SX687,®IS684¯¯®EI¯;*; If quote in ®SV673¯, get "string"
;*;
®IF®IS673¯î®IS672¯<48¯®SX681,®IS681¯+" "+®IS676¯¯®EI¯;*; Get STARTOS2 params into ®SV681¯
;*;
®IF®IS673¯î®IS672¯>43¯®SX682,®IS682¯+" "+®IS676¯¯®EI¯;*; Get O2.CMD switches into ®SV682¯
;*;
®SX670,®IS687¯¯®IF®VA|687¯>0¯®GLH¯®EI¯®EI¯;*;
;*;
®GT683¯®IF®VA|684¯>0¯®SX684,®IS674¯+®IS684¯+®IS674¯¯®SX672,®IS670¯¯®EI¯;*; Get "command to execute" into ®SV684¯
;*;
®IF®VA|684¯<1¯®SV672,¯®SV684,¯®XS670,671,684,,672¯®EI¯;*; Get command into ®SV684¯
;*; Get arguments into ®SV672¯
;*;
®SX680,@UPR(®IS681¯)¯®IF"/C"î®IS680¯<0&"/K"î®IS680¯<0&"/N"î®IS680¯<0¯®SX681,®IS681¯+" "+®IS663¯¯®IF®IS663¯ð"/C"¯®SX682,®IS682¯+" /C"¯®EI¯®EI¯®IF"/F"î®IS680¯<0&"/B"î®IS680¯<0¯®SX681,®IS681¯+" "+®IS664¯¯®EI¯®IF"/FS"î®IS680¯<0&"/WIN"î®IS680¯<0&"/PM"î®IS680¯<0¯®SX681,®IS681¯+" "+®IS665¯¯®EI¯®IF"/MAX"î®IS680¯<0&"/MIN"î®IS680¯<0¯®SX681,®IS681¯+" "+®IS666¯¯®EI¯®IF"/M:"î®IS680¯<0¯®SX681,®IS681¯+" "+®IS667¯¯®EI¯;*; Add defaults to STARTOS2 params
;*;
®SX682,®IS682¯+" "+®IS668¯¯®IF"/P:"î@UPR(®IS682¯)<0¯®SX682,®IS682¯+" "+®IS669¯¯®EI¯®IF@UPR(®IS682¯)ð@UPR(®IS669¯)¯®SX682,®IS682¯+" /O"¯®EI¯;*; Add defaults to O2 options
;*;
®IF®VA|684¯<1¯®SV684,¯®EI¯;*; Get COMSPEC
®SX662,®IS682¯+"
"+®IS684¯+" "+®IS672¯¯®SX663,®IS661¯+":\OS2\MDOS\O2.INI"¯ÿ‚«exist ®PV663¯ÿ‚®IF@NOT(®ER¯)¯ÿ‚«ernv ®PV663¯ÿ‚ÿ‚«waitÿ‚®EI¯ÿ‚«sa %662,®PV663¯ÿ‚ÿ‚«waitÿ‚ÿ‚«dos/nv/x/z /c ®PV661¯:\OS2\MDOS\STARTOS2.EXE ®PV681¯ ®PV661¯:\OS2\MDOS\O2.CMD>NULÿ‚®PR ¯®LBI¯®SV687,¯®SV686,¯®SV685,¯®SV684,¯®SV683,¯®SV682,¯®SV681,¯®SV680,¯®SV679,¯®LBJ¯®SV678,¯®SV677,¯®SV676,¯®SV675,¯®SV674,¯®SV673,¯®SV672,¯®SV671,¯®SV670,¯®LBK¯®SV669,¯®SV668,¯®SV667,¯®SV666,¯®SV665,¯®SV664,¯®SV663,¯®SV662,¯®SV661,¯®EX¯®EI¯®PRBad BootDriveLetter spec in frame O2¯®GLK¯

-----------------------

